package com.itheima.pattern.t4_builder.demo2;

/**
 * 抽象建造者
 */
public abstract class Builder {

    // 声明Bike类型的变量
    protected Bike bike = new Bike();

    public abstract void builderFrame();

    public abstract void builderSeat();

    // 构建自行车的方法
    public abstract Bike createBike();

    // 组装自行车
    public Bike construct() {
        this.builderFrame();
        this.builderSeat();
        return this.createBike();
    }
}
